package com.burger.counter.business;

import com.burger.counter.beans.Sandwich;
import com.burger.counter.dao.SandwichDao;

public class SandwichBusiness {
	public Sandwich[] getSandwichDetails(int regionId) throws Exception{
		System.out.println("we r in business layer");
		SandwichDao sandwichDao = new SandwichDao();
		Sandwich[] sandwich=sandwichDao.getSandwichDetails(regionId);
		return sandwich;
	}
	
	public void setSandwichCount(int regionId,String SandwichName) throws Exception{
		System.out.println("we r in business layer");
		SandwichDao SandwichDao = new SandwichDao();
		SandwichDao.setSandwichCount(regionId, SandwichName);
	}	
}
